package com.ruoyi.yyq.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.yyq.api.domain.CarRescueTask;
import com.ruoyi.yyq.api.factory.RemoteCarRescueTaskFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteCarRescueTaskService", value = ServiceNameConstants.YYQ_SERVICE, fallbackFactory = RemoteCarRescueTaskFallbackFactory.class)
public interface RemoteCarRescueTaskService {
    // 对外暴露接口  查询救援任务列表
    @GetMapping("/helptask/getlist")
    public TableDataInfo getlist(@RequestHeader(SecurityConstants.FROM_SOURCE) String source, CarRescueTask carRescueTask);
    // 对外暴露接口  添加救援任务列表
    @PostMapping("/helptask/getadd")
    public AjaxResult getAdd(@RequestHeader(SecurityConstants.FROM_SOURCE) String source, @RequestBody CarRescueTask carRescueTask);
}
